package com.gl.admin.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 学习资源表
 * </p>
 *
 * @author 晚风
 * @since 2024-12-25
 */
@TableName("learning_resources")
@ApiModel(value = "LearningResources对象", description = "学习资源表")
public class LearningResources implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("资源唯一标识，主键，自增")
    private Integer resourceId;

    @ApiModelProperty("管理员唯一标识，外键，关联用户表（管理员）")
    private Integer userId;

    @ApiModelProperty("资源名称")
    private String resourceName;

    @ApiModelProperty("单词类型专用（例如名词、动词、形容词等）")
    private String wordType;

    @ApiModelProperty("资源类型，如音频、英语单词、图片等")
    private String resourceType;

    @ApiModelProperty("资源URL，存储资源的访问地址")
    private String resourceUrl;

    @ApiModelProperty("资源描述，可选字段")
    private String description;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;


    public Integer getResourceId() {
        return resourceId;
    }

    public void setResourceId(Integer resourceId) {
        this.resourceId = resourceId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getResourceName() {
        return resourceName;
    }

    public void setResourceName(String resourceName) {
        this.resourceName = resourceName;
    }

    public String getWordType() {
        return wordType;
    }

    public void setWordType(String wordType) {
        this.wordType = wordType;
    }

    public String getResourceType() {
        return resourceType;
    }

    public void setResourceType(String resourceType) {
        this.resourceType = resourceType;
    }

    public String getResourceUrl() {
        return resourceUrl;
    }

    public void setResourceUrl(String resourceUrl) {
        this.resourceUrl = resourceUrl;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "LearningResources{" +
        "resourceId=" + resourceId +
        ", userId=" + userId +
        ", resourceName=" + resourceName +
        ", wordType=" + wordType +
        ", resourceType=" + resourceType +
        ", resourceUrl=" + resourceUrl +
        ", description=" + description +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
